package com.supermarket.api.repository;

import com.supermarket.api.entity.SelectedCategoryEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 精选分类相关
 * @author 李其伟
 * @date 2023/10/23
 */
@Repository
public interface SelectedCategoryRepository extends JpaRepository<SelectedCategoryEntity, Long> {

    List<SelectedCategoryEntity> findAllByPublishStatusOrderBySortDesc(Integer publishStatus);
}
